package models

import "gorm.io/gorm"

type ShopType struct {
	gorm.Model
	Id   int    `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`
	Name string `gorm:"column:name" json:"name"`
	Icon string `gorm:"column:icon" json:"icon"`
	Sort int    `gorm:"column:sort" json:"sort"`
}
type ShopTypeVo struct {
	gorm.Model
	Id         int    `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`
	Name       string `gorm:"column:name" json:"name"`
	Icon       string `gorm:"column:icon" json:"icon"`
	Sort       int    `gorm:"column:sort" json:"sort"`
	CreateTime MyTime `gorm:"column:created_at" json:"createTime"`
	UpdateTime MyTime `gorm:"column:updated_at" json:"updateTime"`
}

func (ShopType) TableName() string {
	return "tb_shop_type"
}
func (ShopTypeVo) TableName() string {
	return "tb_shop_type"
}
